package com.conncui.subscript.viewpager;

import java.util.List;

import android.support.v4.view.PagerAdapter;
import android.util.SparseArray;
import android.view.View;
import android.view.ViewGroup;

public class ShowPagerAdapter<T> extends PagerAdapter {
    List<T> mList;
    SparseArray<View> mViewSparseArray;

    public int getCount() {
        return this.mList == null ? 0 : this.mList.size();
    }

    public int getItemPosition(Object object) {
        return super.getItemPosition(object);
    }

    public boolean isViewFromObject(View view, Object object) {
        return false;
    }

    public CharSequence getPageTitle(int position) {
        return super.getPageTitle(position);
    }

    public Object instantiateItem(ViewGroup container, int position) {
        return super.instantiateItem(container, position);
    }

    public void destroyItem(ViewGroup container, int position, Object object) {
        super.destroyItem(container, position, object);
    }

    public List<T> getList() {
        return this.mList;
    }

    public void setList(List<T> list) {
        this.mList = list;
    }

    public SparseArray<View> getViewSparseArray() {
        return this.mViewSparseArray;
    }

    public void setViewSparseArray(SparseArray<View> viewSparseArray) {
        this.mViewSparseArray = viewSparseArray;
    }
}
